package com.hqyj.springCloundAccount.server;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.hqyj.account.entity.Role;
import com.hqyj.commom.vo.Result;
import com.hqyj.commom.vo.Search;

import java.util.List;

public interface RoleService {


    Result<Role> addRole(Role role);

    Result<Role> updateRole(Role role);

    Result<Object> deleteRoleById(int id);

    Role getRoleById(int id);

    List<Role> getRolesByUserId(int userId);

    List<Role> getRoles();

    PageInfo<Role> getRolesBySearchBean(Search search);





}
